package day_8;

import java.util.Scanner;

public class ques1 {
    public static void main(String[] args) {
        //Character
        char[]a={'b','c'};
        System.out.println(a);

    }
    public static void main1(String[]args){
        Scanner scan=new Scanner(System.in);
        int n=scan.nextInt();
        boolean isDir=true,isLen=true;
        char Dir='a';
        int len=0;
        for(int i=0;i<n;i++){
            String index=scan.next();

            char ch=index.charAt(0);
            if(ch>='a'){
                Dir=index.charAt(0);
            }else{
                isDir=false;
            }
            if(index.length()>=len){
                len=index.length();
            }else{
                isLen=false;
            }
        }

        if(isDir==true&&isLen==false){
            System.out.println("lexicographically");
        }
        if(isDir==false&&isLen==true){
            System.out.println("lengths");
        }
        if(isDir&&isLen){
            System.out.println("both");
        }
        System.out.println("none");
    }



    public static void main2(String[]args){
        Scanner scan=new Scanner(System.in);
        int n=scan.nextInt();
        boolean isDir=true,isLen=true;
        char Dir='a';
        int len=0;
        String[]arr=new String[n];
        for(int i=0;i<n;i++){
            arr[i]=scan.next();
        }

        for(int i=0;i<n;i++){
            String index=arr[i];
            char ch=index.charAt(0);
            if(ch>=Dir){
                Dir=index.charAt(0);
            }else{
                isDir=false;
            }
            if(index.length()>=len){
                len=index.length();
            }else{
                isLen=false;
            }

        }
        if(isDir&&isLen){
            System.out.println("both");
            return;
        }else
        if(isDir==true&&isLen==false){
            System.out.println("lexicographically");

        }else
        if(isDir==false&&isLen==true){
            System.out.println("lengths");

        }else{
            System.out.println("none");
        }




    }
}
